home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / bbs / fnos16a5.zip / HELP.ZIP / EXIT < prev    next >
Text File  |  1995-02-21  |  966b  |  28 lines

  1.  
  2. exit [return_code]                                      Default: 0
  3.  
  4.      Causes the JNOS program to terminate when at the NET> prompt.
  5. When shelled to DOS, causes a return to the NET> prompt. When terminating
  6. the program, an "Are you sure?" query is given. Enter "y(es) <cr>" to end
  7. the program.  Any other response returns to JNOS.
  8.  
  9.      If a <return_code> numeric value is provided, this value is returned
  10. to the caller of Jnos.  This is typically a batch file, which may then
  11. take action depending on this code.  For example:
  12.     ...
  13. :rerun
  14.     jnos110i  -u1 -g2
  15.     if errorlevel 100    goto remote_exit
  16.     if errorlevel 99    reboot
  17.     if errorlevel 1        goto rerun
  18.     goto exit
  19. :remote_exit
  20.     ...
  21. :exit
  22.  
  23.  
  24. In this example, issuing "exit 99" would run the reboot command, "exit 1"
  25. would restart Jnos, and "exit" or "exit 0" would exit the batch file that
  26. invoked Jnos.  The remote command (c.v.) when given the exit parameter,
  27. will use a return code of 100.
  28.